/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * DeployApp
 * DeployApp 部署详情
 *
 * OpenAPI spec version: v2
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;
using Newtonsoft.Json;

namespace  JDCloudSDK.Iotedge.Apis
{

    /// <summary>
    ///  部署APP应用
    /// </summary>
    public class DeployAppRequest : JdcloudRequest
    {
        ///<summary>
        /// App内部名称
        ///Required:true
        ///</summary>
        [Required]
        public   string AppName{ get; set; }
        ///<summary>
        /// App版本
        ///Required:true
        ///</summary>
        [Required]
        public   string AppVersion{ get; set; }
        ///<summary>
        /// edge名称
        ///Required:true
        ///</summary>
        [Required]
        public   string EdgeName{ get; set; }
        ///<summary>
        /// App安装变量（默认为空字符串）
        ///</summary>
        public   string Env{ get; set; }
        ///<summary>
        /// 是否特权模式运行(0-否 1-是)
        ///Required:true
        ///</summary>
        [Required]
        public   int Privileged{ get; set; }
        ///<summary>
        /// 硬盘操作卷
        ///</summary>
        public   string Volume{ get; set; }
        ///<summary>
        /// App类型(1-设备服务 2-边缘应用)
        ///Required:true
        ///</summary>
        [Required]
        public   int AppType{ get; set; }
        ///<summary>
        /// 是否使用Edge系统的Host配置(0-否 1-是)
        ///Required:true
        ///</summary>
        [Required]
        public   int UseHost{ get; set; }
        ///<summary>
        /// CPU权重（低-128 中-256 高-512）
        ///Required:true
        ///</summary>
        [Required]
        public   int CpuShares{ get; set; }
        ///<summary>
        /// 内存限制（0-无限 低-128 中-256 高-512）
        ///Required:true
        ///</summary>
        [Required]
        public   string MemoryLimit{ get; set; }
        ///<summary>
        /// 重启策略(0-never 1-always 2-onFailure)
        ///Required:true
        ///</summary>
        [Required]
        public   string RestartPolicy{ get; set; }
        ///<summary>
        /// 部署APP状态(3-更新 其余都是安装)
        ///Required:true
        ///</summary>
        [Required]
        public   int DeployAppStatus{ get; set; }
        ///<summary>
        /// App状态
        ///</summary>
        public   int? AppStatus{ get; set; }
        ///<summary>
        /// 设备归属的实例ID
        ///Required:true
        ///</summary>
        [Required]
        public   string InstanceId{ get; set; }
        ///<summary>
        /// 设备归属的实例所在区域
        ///Required:true
        ///</summary>
        [Required]
        [JsonProperty("regionId")]
        public   string RegionIdValue{ get; set; }
        ///<summary>
        /// 硬件版本
        ///Required:true
        ///</summary>
        [Required]
        public   string HardwareId{ get; set; }
        ///<summary>
        /// OSID
        ///Required:true
        ///</summary>
        [Required]
        public   string OsId{ get; set; }
    }
}